package cn.itsource.user.service;

import cn.itsource.basic.exception.CustomException;
import cn.itsource.basic.service.IBaseService;
import cn.itsource.user.domain.User;
import cn.itsource.user.dto.UserDto;

public interface IUserService extends IBaseService<User> {
    /**
     * 校验手机号码是否存在
     * @param phone
     * @return
     */
    void checkPhone(String phone) throws CustomException;

    /**
     * 注册用户
     * @param userDto
     */
    void register(UserDto userDto) throws CustomException;

    /*
        根据登录信息的id 查询用户对象
     */
    User loadByLoginInfoId(Long id);
}
